import request from '@/utils/request'
/*
 * @Author: 宋一楠
 * @Date: 2021-06-29 14:16:43
 * @LastEditTime: 2021-07-05 14:23:47
 * @LastEditors: 宋一楠
 * @Description: 
 * @FilePath: /pc-uc-admin/src/api/touchRules.js
 */
// 保存规则
export function saveRules(data) {
    return request({
        url: '/etl-admin/etl/rules/save',
        typeData:'JSON',
        method: 'post',
        data,
    })
}

// 保存规则
export function getRulesInfo(params) {
    return request({
        url: '/etl-admin/etl/rules/getInfo',
        method: 'GET',
        params,
    })
}

// 删除规则
export function delRules(params) {
    return request({
        url: '/etl-admin/etl/rules/del',
        method: 'GET',
        params,
    })
}

// 获取已选全量地区
export function getPositionsByIds(params) {
    return request({
        url: '/ucenter-admin/ucenter/pub/getByIds',
        method: 'GET',
        params,
    })
}

// 获取已选全量渠道数据
export function getChannelIdList(params) {
    return request({
        url: '/etl-admin/etl/channel/getChannelIdList',
        method: 'GET',
        params,
    })
}